We can change our variables each time the loops run to place the circles in rows and columns.

  • Position the circle using our variables x, y. Change the size to 15 and the color to "white".
  • Inside the inner loop, use Add Value to add 50 to x each time through the inner loop.
  • OUTSIDE the inner loop, but INSIDE the range(10) loop, use Integer Variable to set x equal to -125.
  • Then use Subtract Value to subtract 35 from y each time through the outer loop.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)